﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<?php include "includes/headers.php"; 

include "jerimum/classes/lances.php";

$_lances	= new lances();

?>

<body>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  var currentPosition = 0;
  var slideWidth = 990;
  var slides = $('.slide');
  var numberOfSlides = slides.length;

  // Remove scrollbar in JS
  $('#slidesContainer').css('overflow', 'hidden');

  // Wrap all .slides with #slideInner div
  slides
    .wrapAll('<div id="slideInner"></div>')
    // Float left to display horizontally, readjust .slides width
	.css({
      'float' : 'left',
      'width' : slideWidth
    });

  // Set #slideInner width equal to total width of all slides
  $('#slideInner').css('width', slideWidth * numberOfSlides);

  // Insert controls in the DOM
  $('#slideshow')
    .prepend('<span class="control" id="leftControl">Clicking moves left</span>')
    .append('<span class="control" id="rightControl">Clicking moves right</span>');

  // Hide left arrow control on first load
  manageControls(currentPosition);

  // Create event listeners for .controls clicks
  $('.control')
    .bind('click', function(){
    // Determine new position
	currentPosition = ($(this).attr('id')=='rightControl') ? currentPosition+1 : currentPosition-1;
    
	// Hide / show controls
    manageControls(currentPosition);
    // Move slideInner using margin-left
    $('#slideInner').animate({
      'marginLeft' : slideWidth*(-currentPosition)
    });
  });

  // manageControls: Hides and Shows controls depending on currentPosition
  function manageControls(position){
    // Hide left arrow if position is first slide
	if(position==0){ $('#leftControl').hide() } else{ $('#leftControl').show() }
	// Hide right arrow if position is last slide
    if(position==numberOfSlides-1){ $('#rightControl').hide() } else{ $('#rightControl').show() }
  }	
});
</script>

<!--COMECAO DO TOPO-->
<?php include "includes/header.php"; ?>
<!--FIMZAO DO TOPO-->

<!--COMECAO DA DIV CENTRAL PRINCIPAL-->
<div id="central">

<?php include "includes/busca.php"; ?>

<style type="text/css">
#classificadosLink a{ color:#666; text-decoration:none}
#classificadosLink a:hover{ color:#FF0000; text-decoration:underline}
</style>   
    
<div style="clear:both; height:5px">&nbsp;</div>

<table>
	<tr>
	
		<td>
		
		<div id="principalhome"> 
			<?php include "includes/menusecundario.php"; ?>
			<?php include "includes/slideprincipal.php"; ?>
			

			<!-- Modificar para dinamico -->
			<div style="clear:both;">&nbsp;</div>
			<div style="border: 1px solid rgb(243, 243, 243); height: 99px; margin-top: -16px; margin-left: -9px;">
				 <div style="  float: left; margin-left: 13px; margin-top: 3px; position: absolute;">
						<a href="#"> AdSol Patrocinado </a> <br />
				 </div>   
				
				<div style="float: left; position: absolute; width: 177px; margin-left: 112px; margin-top: 23px;">
				 	<a target="_blank" href="http://www.cearaparapente.com.br"> Equipamentos de Voo Livre </a> <br>
				   	<span style="color:#009926;">www.cearaparapente.com.br</span> </br> Autorizado Sol Paragliders.
				 </div>   
				
				 <div style="padding-top: 22px; float: right; padding-left: 3px; width: 415px;"> 
				         <table>
				         	<tbody><tr>
				         		<td style="padding-right: 3px; vertical-align: top;"> 
				         			<a target="_blank" href="http://www.peliculavidros.com.br"> Películas importadas para o Seu Carro </a> <br>
				       				 	<span style="color:#009926;">www.peliculavidros.com.br</span> <br> Tudo em Até 12X sem Acréscimo.
				         		</td>
				         		<td>
									<a target="_blank" href="http://www.peliculavidros.com.br">
										<img border="0" src="http://www.solmais.com.br/images/adsolexemplo.png">
									</a>
				         		</td>
				         	</tr>
				         
				         </tbody></table>     
				 </div>               
			</div>
			
			<div style="clear: both; height: 5px; padding-top: 3px;">


			<div  id="bloco" style="border: medium none; min-height:17px !important; text-align: center; margin-left: -46px;
					background: none repeat scroll 0 0 transparent; padding-top: 4px;">
				<span>Mais buscados:</span>
			</div>
			
			<div style="clear:both; height:5px">&nbsp;</div>
			 
			 <!-- miniaturas -->
			<div  id="institucional-principal" style="height:156px; min-height:156px; background:#FFF; margin-left: 64px;">
						<!--  <h4 class="carousel"><b>solmais</b> populares</h4>-->
						
						    <div id="carousel">
						    
						        <div class="prev"><img src="images/prev.jpg" alt="prev" width="19" height="19" border="0" /></div>
						        <div class="slider" style="width: 459px !important; float: left !important;"> 
						          <ul>
						            <?php include "modulos/anuncios/lista-populares.php"; ?>
						          </ul>
						        </div>
						
						        <div class="next"><img src="images/next.jpg" alt="next" width="19" height="19" border="0" /></div>
						       
						  </div>
						  
			</div>
			<!-- miniaturas -->
		</div>
		</td>

		<td>
		
						<?php include "includes/viewpagaseulance.php"; ?>
						<div style="clear:both; height:0px">&nbsp;</div>
						<?php include "includes/viewpromocaoanunciantes.php"; ?>
		</td>
		
		
	</tr>

</table>

<!--MENU ESPACAMENTO-->
<div style="clear:both; margin-top: 7px;">&nbsp;</div>
<!--MENU ESPACAMENTO-->

<div id="principalhome2"> 
			<?php include "includes/viewsuperbarato.php"; ?>

			 <!-- miniaturas -->
			<div  id="bloco" style="height:246px; min-height:200px; background:#FFF; width: 650px;">


				<?php include "includes/listasuperbarato.php"; ?>

						  
			</div>
			
</div>

<!-- Links patrocionados -->
<div id="principalhome2"> 
			<div id="bloco" style="border:none">
				<iframe allowtransparency="true" style=" border:none; overflow: hidden; width: 310px; height: 250px;" src="http://www.facebook.com/plugins/likebox.php?id=184680018211554&amp;width=310&amp;connections=9&amp;stream=false&amp;header=false&amp;height=250" frameborder="0" scrolling="no"></iframe>
			</div>

			 <!-- promocional direito -->
			<div  id="bloco" style="height:246px; min-height:200px; background:#FFF; width: 650px;">
					<a href="http://www.gnc.com" target="_blank"> 
						<img border="0" width="652px" height="249px" src="images/banner_promocional_direito.jpg" alt="Promocional Home" />
					</a>  
			</div>		
</div>

<!--MENU ESPACAMENTO-->
<div style="clear:both">&nbsp;</div>
<!--MENU ESPACAMENTO-->

<?php include "includes/rodape.php"; 

//pegando os dados do lance
$dataSorteio = $_SESSION["dataproxsorteio"];

?>

<script type="text/javascript" src="js/jsmodal2.js"></script>
<script type="text/javascript" src="js/jsmodal.js"></script>

<div id="boxes">
	<div class="window" id="dialog" style="display: none;">
		<div>
			<div>
				<div class="contact-top"></div>
				<div class="contact-content" style="height: 250px; display: block;">
					<h2 class="contact-title">Solmais Paga seu Lance</h2>
			
					<div style="display: none;" class="contact-loading"></div>
					<div style="display: none;" class="contact-message"></div>
			
					<form action="#" id="formlance">
						<br />
						<h5 style="padding-bottom: 5px;"><u>Instruções para Concorrer:</u></h5>
						<h5 class="">1)Insira um valor de lance no campo LANCE abaixo;</h5>
						<h5 class="">2)Clique no botão ENVIAR para concluir seu lance;</h5>
						<h5 class="">3)Verifique o email de confirmação de lance que enviaremos para você;</h5>
						<h5 class="">4)Volte e dê quantos lances quizer, quanto mais lances, mais chances de ganhar;</h5>
						<h5 class="">5)Boa sorte!</h5>
						<br><br><span style="padding-left: 17%;" for="contact-name">*Meu Lance é:</span>
						<input type="text" size="10" maxlength="10" tabindex="1001" class="contact-input maskmoney" id="contact-name"  name="contact-name" onkeypress="return maskKeyPress(event)" onkeydown="FormataMoeda(this,10,event)">

						<a tabindex="1006" id="btenviar" class="contact-send contact-button" href="#">Enviar</a>
						<a tabindex="1007" class="contact-cancel contact-button simplemodal-close close" href="#">Cancelar</a>
						
						<input type="hidden" value="294523148166dcac4ac7b9127466516a" name="token"><br><br><br>
						<h5 class="">**Data do próximo sorteio: <?= date('d/m/Y', strtotime($dataSorteio))?></h5>
						<a tabindex="1007" style="font-size: 12px !important;" class="contact-cancel contact-button simplemodal-close" href="#">No momento não existem resultados de promoções anteriores*</a>
					</form>
				</div>
				</div>
		</div>
	</div>
	
	<div id="mask" style="width: 1280px; height: 399px; display: none; opacity: 0.8;"></div>
		
</div>		

</body>
</html>
